﻿!
function(t) {
	function e(i) {
		if (n[i]) return n[i].exports;
		var a = n[i] = {
			exports: {},
			id: i,
			loaded: !1
		};
		return t[i].call(a.exports, a, a.exports, e), a.loaded = !0, a.exports
	}
	var n = {};
	return e.m = t, e.c = n, e.p = "", e(0)
}({
	0: function(t, e, n) {
		function i(t) {
			var e = $(t).data("width");
			$(t).css("width", e)
		}
		function a(t) {
			var e = String(t).replace(/,+/g, "");
			return e ? e : t
		}
		var r = n(8),
			o = n(9),
			s = {
				init: function(t) {
					var e = $(t);
					if (e.length <= 0) return !1;
					var n = e.data("time"),
						i = setInterval(function() {
							n--;
							var t = s.timer(n);
							return t ? void e.html(t.h + " : " + t.m + " : " + t.s) : (clearInterval(i), e.html("椹笂鎶曡祫"), !1)
						}, 1e3)
				},
				timer: function(t) {
					if (t > 0) {
						var e = parseInt(t),
							n = 0,
							i = 0,
							a = {
								s: "00",
								m: "00",
								h: "00"
							};
						return e > 60 && (n = parseInt(e / 60), e = parseInt(e % 60), n > 60 && (i = parseInt(n / 60), n = parseInt(n % 60))), a.s = s.checkTime(parseInt(e)), n > 0 && (a.m = s.checkTime(parseInt(n))), i > 0 && (a.h = s.checkTime(parseInt(i))), a
					}
					return !1
				},
				checkTime: function(t) {
					return 10 > t && (t = "0" + t), t
				}
			},
			u = {
				init: function() {
					this.notice(), this.tabs(), this.countdown(), this.countUp({
						"people-num": a($("#people-num").data("money")),
						"money-num": a($("#money-num").data("money"))
					}), $(".idx-user").on("mouseenter", ".pic", function() {
						$(this).siblings(".idx-user-hover").addClass("idx-user-hover-current")
					}), $(".idx-user").on("mouseleave", ".pic", function() {
						$(this).siblings(".idx-user-hover").removeClass("idx-user-hover-current")
					}), $(window).scroll(function() {
						$(this).scrollTop() > 200 ? ($(".site-header").addClass("site-header-fixed").animate({
							top: "0"
						}, 400), $(".site-header .col-4").css("width", "20%"), $(".site-header .col-8").css("width", "80%")) : ($(".site-header").stop(!0).css({
							top: "-60px"
						}).removeClass("site-header-fixed"), $(".site-header .col-4").removeAttr("style"), $(".site-header .col-8").removeAttr("style"))
					}), $(".index-slider").bxSlider({
						mode: "fade",
						auto: !0
					}), $(".progress-animate").each(function(t, e) {
						i(e)
					}), $(".transfer-popWrap").hover(function() {
						$(this).find(".pop-over").show()
					}, function() {
						$(this).find(".pop-over").hide()
					})
				},
				notice: function() {
					function t() {
						e = setInterval(function() {
							a++, a > i && (n.css({
								top: "0"
							}), a = 1), n.animate({
								top: -(20 * a) + "px"
							}, 600)
						}, 3e3)
					}
					var e = null,
						n = $("#investment-list ul"),
						i = n.find("li").length,
						a = 0;
					return 2 > i ? !1 : (n.find("li").eq(0).clone().appendTo(n), $("#investment-list li").hover(function() {
						clearInterval(e)
					}, function() {
						t()
					}), void t())
				},
				tabs: function() {
					r($(".idx-profit-titles>ul"), "li", $(".idx-profit-contents"), "active", "idx-profit-show", function(t, e, n) {
						t.find(".animation-wrap").css("left", "100%").show(), t.find(".animation-wrap").stop().animate({
							left: 0
						}, 200), n.eq(e).find(".animation-wrap").hide()
					})
				},
				countdown: function() {
					s.init("#countdown")
				},
				countUp: function(t) {
					var e = {
						useEasing: !0,
						useGrouping: !0,
						separator: ",",
						decimal: ".",
						prefix: "",
						suffic: ""
					};
					for (var n in t) {
						var i = new o(n, 0, t[n], 0, 2.5, e);
						i.start()
					}
				}
			};
		jQuery(function() {
			u.init()
		})
	},
	8: function(t, e) {
		var n = function(t, e, n, i, a, r) {
				var o = t.children(),
					s = n.children(),
					u = 0;
				o.each(function(t, e) {
					return $(e).hasClass(i) ? (u = t, !1) : void 0
				}), t.on("click", e, function() {
					var t = $(this),
						e = t.index();
					return u == e ? !1 : (o.eq(u).removeClass(i), s.eq(u).removeClass(a), t.addClass(i), s.eq(e).addClass(a), r(t, u, o), void(u = e))
				})
			};
		t.exports = n
	},
	9: function(t, e) {
		t.exports = function(t, e, n, i, a, r) {
			for (var o = 0, s = ["webkit", "moz", "ms", "o"], u = 0; u < s.length && !window.requestAnimationFrame; ++u) window.requestAnimationFrame = window[s[u] + "RequestAnimationFrame"], window.cancelAnimationFrame = window[s[u] + "CancelAnimationFrame"] || window[s[u] + "CancelRequestAnimationFrame"];
			window.requestAnimationFrame || (window.requestAnimationFrame = function(t, e) {
				var n = (new Date).getTime(),
					i = Math.max(0, 16 - (n - o)),
					a = window.setTimeout(function() {
						t(n + i)
					}, i);
				return o = n + i, a
			}), window.cancelAnimationFrame || (window.cancelAnimationFrame = function(t) {
				clearTimeout(t)
			}), this.options = {
				useEasing: !0,
				useGrouping: !0,
				separator: ",",
				decimal: "."
			};
			for (var l in r) r.hasOwnProperty(l) && (this.options[l] = r[l]);
			"" === this.options.separator && (this.options.useGrouping = !1), this.options.prefix || (this.options.prefix = ""), this.options.suffix || (this.options.suffix = ""), this.d = "string" == typeof t ? document.getElementById(t) : t, this.startVal = Number(e), this.endVal = Number(n), this.countDown = this.startVal > this.endVal, this.frameVal = this.startVal, this.decimals = Math.max(0, i || 0), this.dec = Math.pow(10, this.decimals), this.duration = 1e3 * Number(a) || 2e3;
			var c = this;
			this.version = function() {
				return "1.6.0"
			}, this.printValue = function(t) {
				var e = isNaN(t) ? "--" : c.formatNumber(t);
				"INPUT" == c.d.tagName ? this.d.value = e : "text" == c.d.tagName || "tspan" == c.d.tagName ? this.d.textContent = e : this.d.innerHTML = e
			}, this.easeOutExpo = function(t, e, n, i) {
				return n * (-Math.pow(2, -10 * t / i) + 1) * 1024 / 1023 + e
			}, this.count = function(t) {
				c.startTime || (c.startTime = t), c.timestamp = t;
				var e = t - c.startTime;
				c.remaining = c.duration - e, c.options.useEasing ? c.countDown ? c.frameVal = c.startVal - c.easeOutExpo(e, 0, c.startVal - c.endVal, c.duration) : c.frameVal = c.easeOutExpo(e, c.startVal, c.endVal - c.startVal, c.duration) : c.countDown ? c.frameVal = c.startVal - (c.startVal - c.endVal) * (e / c.duration) : c.frameVal = c.startVal + (c.endVal - c.startVal) * (e / c.duration), c.countDown ? c.frameVal = c.frameVal < c.endVal ? c.endVal : c.frameVal : c.frameVal = c.frameVal > c.endVal ? c.endVal : c.frameVal, c.frameVal = Math.round(c.frameVal * c.dec) / c.dec, c.printValue(c.frameVal), e < c.duration ? c.rAF = requestAnimationFrame(c.count) : c.callback && c.callback()
			}, this.start = function(t) {
				return c.callback = t, c.rAF = requestAnimationFrame(c.count), !1
			}, this.pauseResume = function() {
				c.paused ? (c.paused = !1, delete c.startTime, c.duration = c.remaining, c.startVal = c.frameVal, requestAnimationFrame(c.count)) : (c.paused = !0, cancelAnimationFrame(c.rAF))
			}, this.reset = function() {
				c.paused = !1, delete c.startTime, c.startVal = e, cancelAnimationFrame(c.rAF), c.printValue(c.startVal)
			}, this.update = function(t) {
				cancelAnimationFrame(c.rAF), c.paused = !1, delete c.startTime, c.startVal = c.frameVal, c.endVal = Number(t), c.countDown = c.startVal > c.endVal, c.rAF = requestAnimationFrame(c.count)
			}, this.formatNumber = function(t) {
				t = t.toFixed(c.decimals), t += "";
				var e, n, i, a;
				if (e = t.split("."), n = e[0], i = e.length > 1 ? c.options.decimal + e[1] : "", a = /(\d+)(\d{3})/, c.options.useGrouping) for (; a.test(n);) n = n.replace(a, "$1" + c.options.separator + "$2");
				return c.options.prefix + n + i + c.options.suffix
			}, c.printValue(c.startVal)
		}
	}
});
